﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Layout.master" AutoEventWireup="true"
    CodeFile="register.aspx.cs" Inherits="register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="registerMenu" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="register">
        <table style="width: 100%;">
            <tr>
                <td align="left" colspan="3" style="font-weight: bold; font-size: 16px">
                    Đăng ký tài khoản
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Tài khoản :
                </td>
                <td style="width: 25%">
                    <asp:TextBox ID="tbxTenDangNhap" runat="server" Style="position: relative; width: 100%"></asp:TextBox>
                </td>
                <td style="padding-left: 3%">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Tên tài khoản bắt buộc phải có dữ liệu"
                        ControlToValidate="tbxTenDangNhap" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:Label ID="lbKTTenDangNhap" runat="server" Text="" Style="width: 100%; color: Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Email :
                </td>
                <td style="width: 25%">
                    <asp:TextBox ID="tbxEmail" runat="server" Style="position: relative; width: 100%"></asp:TextBox>
                </td>
                <td style="padding-left: 3%">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Bắt buộc phải điền"
                        ControlToValidate="tbxEmail" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxEmail"
                        ErrorMessage="Email phải chưa ký tự '@' và '.' " ValidationExpression="\S+@\S+\.\S+"
                        Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Mật khẩu :
                </td>
                <td style="width: 25%">
                    <asp:TextBox ID="tbxMatKhau" TextMode="password" runat="server" Style="position: relative;
                        width: 100%"></asp:TextBox>
                </td>
                <td style="padding-left: 3%">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Bắt buộc phải điền mật khẩu"
                        ControlToValidate="tbxMatKhau" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Xác nhận mật khẩu :
                </td>
                <td style="width: 25%">
                    <asp:TextBox ID="tbxXacNhanMatKhau" TextMode="password" runat="server" Style="position: relative;
                        width: 100%"></asp:TextBox>
                </td>
                <td style="padding-left: 3%">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bắt buộc phải xác nhận mật khẩu"
                        ControlToValidate="tbxXacNhanMatKhau" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tbxMatKhau"
                        ControlToValidate="tbxXacNhanMatKhau" ErrorMessage="Xác nhận mật khẩu không khớp"
                        Display="Dynamic"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Ngày sinh :
                </td>
                <td style="width: 25%">
                    <asp:TextBox ID="tbxNgay" runat="server" Style="position: relative; width: 12%"></asp:TextBox>
                    Tháng &nbsp;
                    <asp:TextBox ID="tbxThang" runat="server" Style="position: relative; width: 12%;"></asp:TextBox>
                    Năm &nbsp;
                    <asp:TextBox ID="tbxNam" runat="server" Style="position: relative; width: 14%;"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="tbxNgay"
                        ErrorMessage="Ngày sinh không hợp lệ" MaximumValue="31" MinimumValue="1" Display="Dynamic"
                        Type="Integer"></asp:RangeValidator>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="tbxThang"
                        ErrorMessage="Tháng sinh không hợp lệ" MaximumValue="12" MinimumValue="1" Display="Dynamic"
                        Type="Integer"></asp:RangeValidator>
                    <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="tbxNam"
                        ErrorMessage="Năm sinh không hợp lệ" MaximumValue="5000" MinimumValue="1900"
                        Display="Dynamic" Type="Integer"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Giới tính :
                    <td style="width: 25%">
                        <asp:DropDownList ID="ddlGioiTinh" runat="server" Style="position: relative; width: 100%;
                            top: 0px; left: 0px;">
                            <asp:ListItem Value="1">Nam</asp:ListItem>
                            <asp:ListItem Value="0">Nữ</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="left: 10%">
                        &nbsp;
                    </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Họ tên :<td style="width: 25%">
                        <asp:TextBox ID="tbxHoTen" runat="server" Style="position: relative; width: 100%"
                            type="text"></asp:TextBox>
                    </td>
                    <td style="padding-left: 3%">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Bắt buộc cung cấp họ tên"
                            ControlToValidate="tbxHoTen" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Địa chỉ :<td style="width: 25%">
                        <asp:TextBox ID="tbxDiaChi" runat="server" Style="position: relative; width: 100%"
                            type="text"></asp:TextBox>
                    </td>
                    <td style="padding-left: 3%">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Bắt buộc cung cấp địa chỉ"
                            ControlToValidate="tbxDiaChi" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td align="right" style="width: 16%">
                    Điện thoai :<td style="width: 25%">
                        <asp:TextBox ID="tbxDienThoai" runat="server" Style="position: relative; width: 100%"
                            type="text"></asp:TextBox>
                    </td>
                    <td style="padding-left: 3%">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Bắt buộc cung cấp số điện thoại"
                            ControlToValidate="tbxDienThoai" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td align="right">
                </td>
                <td>
                    <asp:Button ID="btnDangKy" runat="server" OnClick="btnSubmit" Text="Đăng Ký" />
                </td>
                <td>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
